gfg school practice problem